Skip to content

Enable DELETE on the Docker v2 blob endpoint#2380

Draft
gerrod3 wants to merge 4 commits into
pulp:mainfrom
gerrod3:issue-481-blob-delete
Draft

Enable DELETE on the Docker v2 blob endpoint#2380
gerrod3 wants to merge 4 commits into
pulp:mainfrom
gerrod3:issue-481-blob-delete

Conversation

@gerrod3

@gerrod3 gerrod3 commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add DELETE /v2/<name>/blobs/<digest> to the registry API for push repositories
  • Pending blobs are removed immediately; committed blobs are removed via recursive_remove_content
  • Add functional tests for delete, not-found, invalid digest, and auth

Test plan

  • pytest pulp_container/tests/functional/api/test_delete_blob.py -v
  • Mount a blob to a push repo, DELETE it, confirm HEAD returns 404

Fixes #481

Made with Cursor

gerrod3 added a commit to gerrod3/pulp_container that referenced this pull request Jun 1, 2026
Fixes lint failure blocking CI on PR pulp#2380.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gerrod3

gerrod3 commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

gerrod3 and others added 3 commits July 1, 2026 10:34
Implement DELETE /v2/<name>/blobs/<digest> for push repositories,
with functional tests. Fixes pulp#481.

Co-authored-by: Cursor <cursoragent@cursor.com>
Fixes lint failure blocking CI on PR pulp#2380.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use a shared class-scoped sync setup, numbered tests, and async removal polling.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gerrod3 gerrod3 force-pushed the issue-481-blob-delete branch from 05264ca to a9b8ff9 Compare July 1, 2026 14:42
Use the immediate async task so blob delete matches registry semantics.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

As a user I can delete a blob by digest via docker v2 api

1 participant